﻿// MainMenu.cpp: 实现文件
//

#include "pch.h"
#include "RockSccissorsPapers.h"
#include "afxdialogex.h"
#include "MainMenu.h"
#include "SELECT.h"
#include "Double.h"
#include <cstdlib>
#include <ctime>


// MainMenu 对话框

IMPLEMENT_DYNAMIC(MainMenu, CDialogEx)

MainMenu::MainMenu(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_MainMenu, pParent)
{

}

MainMenu::~MainMenu()
{
}

void MainMenu::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(MainMenu, CDialogEx)
	ON_BN_CLICKED(IDC_GameStart, &MainMenu::OnBnClickedGamestart)
	ON_BN_CLICKED(IDC_GameStart2, &MainMenu::OnBnClickedGamestart2)
END_MESSAGE_MAP()


// MainMenu 消息处理程序

void MainMenu::OnBnClickedGamestart()
{
	Sleep(500);
	ShowWindow(SW_HIDE);
	Sleep(1000);
	SELECT RSPDlg;
	RSPDlg.DoModal();
	ShowWindow(SW_SHOW);
}
void MainMenu::OnBnClickedGamestart2()
{
	Sleep(500);
	ShowWindow(SW_HIDE);
	Sleep(1000);
	Double RSPDlg;
	RSPDlg.DoModal();
	ShowWindow(SW_SHOW);
}
